import request from "@/utils/request";

/* 应用商店-应用管理-获取列表数据*/
export function queryAPPListRequest(data) {
  return request({
    url: "/management-admin/resourceApp/queryByPage",
    method: "post",
    data,
  });
}

/* 应用商店-应用管理-编辑列表状态 有id为编辑  没有id为新增*/
export function editAPPStatusRequest(data) {
  return request({
    url: "/management-admin/resourceApp/save",
    method: "post",
    data,
  });
}

/* 应用商店-应用管理-通过id查回显数据*/
export function getAPPByIdRequest(id) {
  return request({
    url: "/management-admin/resourceApp/" + id,
    method: "get",
  });
}

//删除操作
export function deleteAPPByIdRequest(id) {
  return request({
    url: "/management-admin/resourceApp/delete?id=" + id,
    method: "get",
  });
}

//删除组
export function deleteAPPGroupByIdRequest(data) {
  return request({
    url: "/management-admin/resourceApp/deleteTitle",
    method: "post",
    data,
  });
}
